home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 160 - Disc 1 / MF_UK_160_1.iso / pc / DiscContent / FullSoftware / Amapi61MacEn / Amapi 3D 6.1 Installer / 3SPACE / DropBehavior.js < prev    next >
Encoding:
Text File  |  2001-02-20  |  637 b   |  40 lines  |  [AMAS/AMAP]

  1. // -* DropBehavior.js *-
  2. //
  3. // Name: Drop behavior
  4. // Description: 
  5. // Author:
  6. // Version: $Id: DropBehavior.js,v 1.1 2000/12/21 15:03:56 consumer Exp $
  7. //
  8.  
  9. function DropBehavior()
  10. {
  11.   // No need for an object with this behavior.
  12. }
  13.  
  14. function DropBehaviorStart(solidName)
  15. {
  16.   TSUpdateNodeAttribute(solidName, 'fixed', '0');
  17. }
  18.  
  19. function DropBehaviorStop()
  20. {
  21. }
  22.  
  23. //
  24. // Event functions
  25. //
  26.  
  27. function DropBehaviorStartEvent(obj, event)
  28. {
  29.   var targetSolid = TSGetExtraParam(event, 'targetSolid');
  30.  
  31.   if (targetSolid == "")
  32.     DropBehaviorStart(obj);
  33.   else
  34.     DropBehaviorStart(targetSolid);
  35. }
  36.  
  37. function DropBehaviorStopEvent(obj, event)
  38. {
  39. }
  40.